<#assign pojoNameLower = pojo.shortName.substring(0,1).toLowerCase()+pojo.shortName.substring(1)>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>


	<package name="${pojoNameLower}" extends="default"	namespace="/">

		<action name="${pojoNameLower}List"	class="${basepackage}.webapp.action.${pojo.shortName}PagedAction">
			<result>/WEB-INF/pages/${pojoNameLower}/${pojoNameLower}List.jsp</result>
		</action>
		
		
		<action name="${pojoNameLower}Grid"	class="${basepackage}.webapp.action.${pojo.shortName}PagedAction" method="<#rt>
		<#if fType=="2" && pojo.shortName==detailShortName>
		<#t>gridPropertyFilterPageList
		<#else>
		<#t>gridPageList
		</#if>
		<#t>">
			<result name="success" type="json">
				<param name="includeProperties">pageList.*,records,total,page</param>
				<#if fType=="2" && pojo.shortName==masterShortName>
				<param name="excludeProperties">pageList.*\.${util.getPluralForWord(detailShortNameLower)}</param>
				</#if>
				<#if fType=="2" && pojo.shortName==detailShortName>
				<param name="excludeProperties">pageList.*\.${masterShortNameLower}.${util.getPluralForWord(detailShortNameLower)}</param>
				</#if>
				<param name="noCache">true</param>
				<param name="ignoreHierarchy">false</param>
			</result>
		</action>
		
		
		<action name="edit${pojo.shortName}" class="${basepackage}.webapp.action.${pojo.shortName}EditAction" method="edit">
			<result name="success">/WEB-INF/pages/${pojoNameLower}/${pojoNameLower}Form.jsp</result>
			
		</action>
		<action name="save${pojo.shortName}" class="${basepackage}.webapp.action.${pojo.shortName}EditAction" method="save">
			<result name="success"  type="json">
				<param name="includeProperties">gridId,message,msgType,returnCode</param>
				<param name="noCache">true</param>
				<param name="ignoreHierarchy">false</param>
			</result>
		</action>
		<action name="delete${pojo.shortName}" class="${basepackage}.webapp.action.${pojo.shortName}EditAction" method="delete">
			<result name="success"  type="json">
				<param name="includeProperties">gridId,message,msgType,returnCode</param>
				<param name="noCache">true</param>
				<param name="ignoreHierarchy">false</param>
			</result>
		</action>
	</package>

</struts>
